package cn.cloud.all.security.oauth2.provider.code;

import cn.cloud.all.security.oauth2.common.exceptions.InvalidGrantException;
import cn.cloud.all.security.oauth2.provider.OAuth2Authentication;

public interface AuthorizationCodeServices {

    String createAuthorizationCode(OAuth2Authentication authentication);

    OAuth2Authentication consumeAuthorizationCode(String code) throws InvalidGrantException;

}
